package com.jwsoft.manager.core.task.address;

import com.bifang.assistant.common.vo.BaseVO;
import com.jwsoft.manager.core.integration.EduAddressIntegration;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 设置地址的行政区划job
 * @author chenzh
 */
@Component
@Slf4j
public class SetAreaCodeTaskJob {
    @Autowired
    EduAddressIntegration eduAddressIntegration;

    @XxlJob("setAreaCodeTaskJob")
    public void setAreaCodeJobHandler() {
        XxlJobHelper.log("XXL-JOB, setAreaCodeTaskJob");
        log.info("设置地址的行政区划job开始");
        eduAddressIntegration.setAreaCode(new BaseVO());
        log.info("设置地址的行政区划job结束");
    }
}
